Integrated circuit, circuit board, and electronic apparatus

ABSTRACT

An integrated circuit according to one or more embodiments may include a terminal to which an impedance element and a power supply having a predetermined potential can be connected. The integrated circuit may be configured to change a potential of one of electrodes of the impedance element connected to the terminal, detect a change in electrical characteristics of the terminal based on characteristics of the impedance element when the potential of the one electrode of the impedance element is changed, to determine a setting condition among a plurality of setting conditions that are used for an operation of the integrated circuit, store the setting condition in a storage, and use the setting condition stored in the storage for the operation of the integrated circuit.

CROSS REFERENCE TO RELATED APPLICATIONS

This application claims priority based on 35 USC 119 from prior JapanesePatent Applications No. 2021-087037 filed on May 24, 2021 and No.2021-174914, filed on Oct. 26, 2021, entitled “INTEGRATED CIRCUIT,CIRCUIT BOARD, AND ELECTRONIC APPARATUS”, the entire contents of all ofwhich are incorporated herein by reference.

BACKGROUND

The disclosure may relate to an integrated circuit, a circuit board, andan electronic apparatus, and may be suitable for application to anintegrated circuit mounted on a circuit board in an image formationapparatus, for example.

In a related art, it may be a common practice, in a semiconductorintegrated circuit, to set a terminal, which is normally used as anoutput terminal, to a high impedance state when a power is turned on,and read a potential (1 or 0) of the terminal effected by a pull-upresistor or a pull-down resistor connected to the terminal, and use theread value as a set value to be used for operation of an integratedcircuit (IC) chip of the semiconductor integrated circuit (see, forexample,

-   Patent Document 1: Japanese Patent Application Publication No.    2004-45481).

SUMMARY

In such a semiconductor integrated circuit, a number of pins availablefor acquiring information may not be sufficient depending on the circuitconfiguration. However, even in such a case, the semiconductorintegrated circuit could only take in one bit of information per pin,and thus a sufficient number of settings could not be ensured.

An object of an embodiment of the disclosure may be to provide anintegrated circuit, a circuit board, and an electronic apparatus thatcan improve functionality.

A first aspect of the disclosure may be an integrated circuit that mayinclude: a terminal configured to be connected to an impedance elementand a power supply having a predetermined potential, wherein theintegrated circuit is configured to change a potential of one ofelectrodes of the impedance element connected to the terminal, detect achange in electrical characteristics of the terminal based oncharacteristics of the impedance element when the potential of the oneelectrode of the impedance element is changed, to determine a settingcondition among a plurality of setting conditions that are used for anoperation of the integrated circuit, store the set condition in astorage, and use the set condition stored in the storage for theoperation of the integrated circuit.

A second aspect of the disclosure may be a circuit board that mayinclude: the integrated circuit according to the first aspect; theimpedance element connected to the terminal of the integrated circuit;and the power supply connected to the impedance element.

A third aspect of the disclosure may be an electronic apparatus that mayinclude the circuit board according to the second aspect describedabove.

According to one or more aspects described above, the integrated circuitcan read (determine) one setting condition among a plurality of settingconditions, by one of impedance elements, whose electricalcharacteristics are different from each other, being selectively mountedto a same impedance element mounting position.

According to one or more aspects described above, it is possible torealize an integrated circuit, a circuit board, and an electronicapparatus that can improve functionality.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram illustrating a view of a configuration of a printeraccording to one or more embodiments;

FIG. 2 is a block diagram illustrating a view of a configuration of acircuit board according to a first embodiment;

FIGS. 3A to 3D are block diagrams each illustrating a combination of aresistor mounting position and a resistor constant according to a firstembodiment, wherein FIG. 3A illustrates a case in which a set value is3, FIG. 3B illustrates a case in which the set value is 2, FIG. 3Cillustrates a case in which the set value is 1, and FIG. 3D illustratesa case in which the set value is 0;

FIG. 4 is a graph illustrating a relationship between a potential Vc ofa signal line L and an elapsed time in a case where a resistor Rs or Rwis mounted at a resistor mounting position MPI according to a firstembodiment;

FIG. 5 is a graph illustrating a relationship between the potential Vcof the signal line L and the elapsed time in a case where the resistorRs or Rw is mounted at a resistor mounting position MPI according to afirst embodiment;

FIGS. 6A to 6D are diagrams each illustrating a timing chart of signalsbetween an IO buffer control unit and an IO buffer according to a firstembodiment, wherein FIG. 6A illustrates the timing chart in the case ofthe set value being 3, FIG. 6B illustrates the timing chart in the caseof the set value being 2, FIG. 6C illustrates the timing chart in thecase of the set value being 1, and FIG. 6D illustrates the timing chartin the case of the set value being 0;

FIG. 7 is a flowchart illustrating a set value reading processingprocedure according to a first embodiment;

FIG. 8 is a block diagram illustrating a view of a configuration of acircuit board according to a second embodiment;

FIG. 9 is a block diagram illustrating a configuration of an equivalentcircuit of the circuit board according to a second embodiment, which isobtained by replacing a capacitor and an opposing device of the circuitboard with a capacitor having an equivalent load capacitance thereof;

FIGS. 10A to 10H are block diagrams each illustrating a combination of aresistor mounting position and a resistor constant according to secondand third embodiments, wherein FIG. 10A illustrates a case in which theset value is 7, FIG. 10B illustrates a case in which the set value is 6,FIG. 10C illustrates a case in which the set value is 5, FIG. 10Dillustrates a case in which the set value is 4, FIG. 10E illustrates acase in which the set value is 3, FIG. 10F illustrates a case in whichthe set value is 2, FIG. 10G illustrates a case in which the set valueis 1, and FIG. 10H illustrates a case in which the set value is 0;

FIG. 11 is a graph illustrating a relationship between a potential Vc ofa signal line L and an elapsed time in a case where a resistor Ra, Rb,Rc, or Rd is mounted at a resistor mounting position MPI according tosecond and third embodiments;

FIG. 12 is a graph illustrating a relationship between the potential Vcof the signal line L and the elapsed time in a case where the resistorRa, Rb, Rc, or Rd is mounted at a resistor mounting position MPIaccording to second and third embodiments;

FIGS. 13A to 13D are timing charts of signals between an IO buffercontrol unit and an IO buffer according to second and third embodiments,wherein FIG. 13A illustrates the timing chart in a case of the set valuebeing 7, FIG. 13B illustrates the timing chart in a case of the setvalue being 6, FIG. 13C illustrates the timing chart in a case of theset value being 5, and FIG. 13D illustrates the timing chart in a caseof the set value being 4;

FIGS. 14A to 14D are timing charts of the signals between the IO buffercontrol unit and the IO buffer according to second and thirdembodiments, wherein FIG. 14A illustrates the timing chart in a case ofthe set value being 3, FIG. 14B illustrates the timing chart in a caseof the set value being 2, FIG. 14C illustrates the timing chart in acase of the set value being 1, and FIG. 14D illustrates the timing chartin a case of the set value being 0;

FIG. 15 is a flowchart illustrating a set value reading processingprocedure according to a second embodiment;

FIG. 16 is a diagram illustrating a set value replacement correspondencetable according to a second embodiment;

FIG. 17 is a block diagram illustrating a configuration of a circuitboard according to a third embodiment;

FIG. 18 is a block diagram illustrating a configuration of an equivalentcircuit of the circuit board according to a third embodiment, which isobtained by replacing a capacitor and an opposing device of the circuitboard with a capacitor having an equivalent load capacitance thereof;

FIG. 19 is a flowchart illustrating a set value reading processingprocedure according to a third embodiment; and

FIG. 20 is a diagram illustrating a set value replacement correspondencetable according to a third embodiment.

DETAILED DESCRIPTION

Descriptions are provided hereinbelow for one or more embodiments basedon the drawings. In the respective drawings referenced herein, the sameconstituents are designated by the same reference numerals and duplicateexplanation concerning the same constituents is omitted. All of thedrawings are provided to illustrate the respective examples only.

(1. First Embodiment)

(1-1. Printer Configuration]

As illustrated in FIG. 1 , a printer 1 is a color electrophotographicprinter, for example. The printer is configured to print an image onpaper or the like. The printer 1 includes various components, includinga circuit board 2 illustrated in FIG. 2 , inside a housing thereof. Theprinter 1 is controlled entirely by a semiconductor integrated circuit 3mounted on the circuit board 2, for example.

(1-2. Configuration of Circuit Board)

As illustrated in FIG. 2 , the circuit board 2 is equipped with thesemiconductor integrated circuit 3, an OSC4, a resistor 6 (6 s or 6 w),a capacitor 8, and an opposing device 10. The semiconductor integratedcircuit 3 is configured in which a terminal 11, which is one of aplurality of terminals, is connected to a signal line L, which isconnected to the opposing device 10. That is, the semiconductorintegrated circuit 3 and the opposing device 10 are connected by thesignal line L.

The semiconductor integrated circuit 3 is, for example, an ASIC(Application Specific Integrated Circuit) and includes an IO buffer 12,an IO buffer control unit 14, a transmitter 16, and a memory 18 (or astorage). The IO buffer 12 is an LVTTL (Low Voltage TTL) input/outputbuffer. Thresholds of the input potential of the LVTTL include athreshold Vil at which the input potential is determined to be a lowlevel and a threshold Vih at which the input potential is determined tobe a high level, wherein the threshold Vil is 0.8V (Low) and thethreshold Vih is 2.0 V (High).

The IO buffer control unit 14 as a control unit or a controller is alogic circuit that controls the IO buffer 12. The IO buffer control unit14 is connected to the 10 buffer 12 via three signal lines, which aresignal lines Loe, Lout, and Lin. The 10 buffer control unit 14 outputsan OE signal and an OUT signal from the signal lines Loe and Lout andreceives an IN signal from the signal line Lin serving as a signal inputpart. When the IO buffer control unit 14 puts the IO buffer 12 in a highimpedance state (hereinafter may be referred to as a Hi-z state), the IObuffer control unit 14 outputs “0” which is the Low level of the OEsignal to the signal line Loe (hereafter, may be referred to as “oe=0”),regardless of the state of the OUT signal. In the following, putting theIO buffer 12 into the high impedance state may be referred to as cuttingoff (stopping) the output of the signal line L (or opening the signalline L). When the IO buffer control unit 14 outputs “1” to the signalline L via the IO buffer 12, the IO buffer control unit 14 outputs “1”as the high level of the OE signal to the signal line Loe (hereafter maybe referred to as “oe=1”), and outputs “1” as the high level of the OUTsignal to the signal line Lout as a signal output part (hereinafter maybe referred to as “out=1”). On the other hand, when the IO buffercontrol unit 14 outputs “0” to the signal line L via the IO buffer 12,the IO buffer control unit 14 outputs “1” as the high level of the OEsignal to the signal line Loe (“oe=1”) and outputs “0” as the Low levelof the OUT signal to the signal line Lout (hereafter may be referred toas “out=0”). Further, the IO buffer control unit 14 reads a value of theIN signal by receiving the IN signal from the signal line Lin via the IObuffer 12.

The transmitter 16 is a logic circuit that transmits an output signal txto the opposing device 10 in an original usage of the semiconductorintegrated circuit 3. Upon outputting the output signal tx to the signalline L via the IO buffer 12, the 10 buffer control unit 14 transfers thesignal control right of the IO buffer 12 to the transmitter 16, byoutputting the output signal tx to the signal line Lout (hereinafter maybe referred to as “out=tx”) and setting to “oe=1”.

The memory 18 is configured to store therein one of tset values (i.e.,set value 3, set value 2, set value 1, and set value 0) that is read bythe IO buffer control unit 14 through the terminal 11 and is to be usedfor an initial operation of the integrated circuit 3. The OSC4 is anoscillator and supplies a clock to the semiconductor integrated circuit3. The clock frequency is 10 [MHz] (That is, the clock cycle is 0.1 μs).

The resistors 6 (6 s, 6 w) are resistor elements such as chip resistors.Only one of the resistors 6 s and 6 w is selectively mounted on eitherone of resistor mounting positions MPu and MPI (impedance elementmounting positions or portions). In other words, the resistor 6 will notbe mounted at both of the resistor mounting positions MPu and MPI. Inthe following, the resistors 6 s and 6 w may be referred to as resistors6, and the resistor mounting positions MPu and MPI may be referred toresistor mounting positions MP as impedance element mounting positions.The resistor 6 mounted to the resistor mounting position MPu isconnected to the signal line L at one of external electrodes thereof andis connected to 3.3 V, which is Vcc, at the other external electrodethereof. To the contrary, the resistor 6 mounted to the resistormounting position MPI is connected to the signal line L at one of theexternal electrodes thereof and is connected to 0 V, which is GND, atthe other external electrode thereof. A resistance constant Rs, which isa constant (i.e., resistance value) of the resistor 6 s, is, forexample, 2 k Ω. A resistance constant Rw, which is a constant (i.e.,resistance value) of the resistor 6 w, is, for example, 10 k Ω.

The capacitor 8 is composed of a chip capacitor or the like. Thecapacitor 8 is connected at one of external electrodes thereof to thesignal line L and at the other external electrode thereof to 0 V andthus functions as a capacitive component between the signal line L and 0V. A capacitance value C of the capacitor 8 is 50 pF. The opposingdevice 10 is a device that receives data output from the semiconductorintegrated circuit 3.

(1-3. Combination of Resistor Mounting Position and Resistor Constant)FIGS. 3A, 3B, 3C and 3D illustrate combinations of the resistor mountingposition M (MPu or MPI) at which the resistor 6 can be mounted on thecircuit board 2, and the resistance constant R (Rs or Rw) of theresistor 6. The semiconductor integrated circuit 3 is configured todetect (read) from the signal line L one of four different set values of3, 2, 1, and 0 according to one of four different combinations (fourdifferent patterns) of the resistor mounting position MP and theresistor constant R. In each of FIGS. 3A to 3D, the resistor mountingposition MP and the resistance constant R and the set value read by thesemiconductor integrated circuit 3 are as follows.

FIG. 3A: the resistor mounting position MPu, the resistance constant Rs,and the set value 3

FIG. 3B: the resistor mounting position MPu, the resistance constant Rw,and the set value 2

FIG. 3C: the resistor mounting position MPI, the resistance constant Rw,and the set value 1

FIG. 3D: the resistor mounting position MPI, the resistance constant Rs,and the set value 0

That is, for example, in the case illustrated in FIG. 3A in which theresistor 6 s having the resistor constant Rs is mounted at the resistormounting position MPu and no resistor is mounted at the resistormounting position MPI, the semiconductor integrated circuit 3 reads theset value of 3.

As described above, the resistor mounting positions MPu and MPI areprovided as follows.

The resistor mounting position MPu: between the signal line L and 3.3 V.

The resistor mounting position MPI: between the signal line L and 0 V.

Furthermore, as described above, the resistance constants Rs and Rw areas follows.

The resistance constant Rs: 2 kΩ

The resistance constant Rw: 10 kΩ

(1-4. Relationship Between Elapsed Time and Potential of Signal Line)

(1-4-1. Case where the Resistor 6 s or 6 w is Mounted at the ResistorMounting Position MPu)

FIG. 4 illustrates a graph illustrating a change in the potential of thepotential Vc of the signal line L, starting from L=0 V in the statewhere the IO buffer 12 is in the high impedance state (in the setting“oe=0”) in the case where the resistor 6 s or 6 w is mounted to theresistor mounting position MPu, which is calculated by using a stepresponse calculation formula for an RC circuit. In the graph of FIG. 4 ,the constant of the resistor 6 that can be mounted at the resistormounting position MPu is the resistance constant Rs (2 k Ω) or Rw (10 kΩ). In FIG. 4 , the potential changes in these two cases areillustrated. The potential Vc of the signal line L is expressed by thefollowing equation (1) in relation with the time t (seconds) from thestart.

$\begin{matrix}{{{Vc}(t)} = {3.3*\left( {1 - \text{?}} \right)}} & (1)\end{matrix}$ ?indicates text missing or illegible when filed

Here, “e” is the Napier number (2.718 . . . ) and “T” is the timeconstant (in seconds). In the case of the resistance constant Rs (2 kΩ), the value of “T” is expressed by the following equation (2), and inthe case of the resistance constant Rw (10 k Ω), the value of “T” isexpressed by the following equation (3).

τ=C*Rs=50*10⁻⁹*2*10³=100*10⁻⁶=100[μs]  (2)

τ=C*Rw=50*10⁻⁹*10*10³=500*10⁻⁶=500[μs]  (3)

As illustrated in the graph of FIG. 4 , it can be seen that, in the caseof the resistance constant Rs (2 k Ω), at the latest the time of 95 μs,the potential Vc of the signal line L exceeds the threshold Vih (2 V),which means that the IO buffer 12 reads “1” from the signal line L atthe latest the time of 95 μs. On the other hand, it can be seen that, inthe case of the resistance constant Rw (10 k Ω), the potential Vc of thesignal line L does not exceed the threshold Vil (0.8 V) until the timeof 135 μs at the earliest, which means that the IO buffer 12 reads “0”from the signal line L until the time of 135 μs at the earliest. Forexample, 115 μs after the IO buffer 12 starts in the high impedancestate (“oe=0”), the IO buffer 12 reads “1” from the signal line L in thecase of the resistance constant Rs (2 k Ω), and reads “0” from thesignal line L in the case of the resistance constant Rw (10 k Ω).

(1-4-2. Case where the Resistor 6 s or 6 w is Mounted at the ResistorMounting Position MPI)

FIG. 5 illustrates a graph illustrating a change in the potential of thepotential Vc of the signal line L, starting from L=3.3 V in the statewhere the IO buffer 12 is in the high impedance state (in the setting“oe=0”) in the case where the resistor 6 s or 6 w is mounted to theresistor mounting position MPI, which is calculated by using the stepresponse calculation formula for the RC circuit. In the graph of FIG. 5, the constant of the resistor 6 that can be mounted at the resistormounting position MPI is the resistance constant Rs (2 k Ω) or Rw (10 kΩ). In FIG. 5 , the potential changes in these two cases areillustrated. The potential Vc of the signal line L is expressed by thefollowing equation (4) in relation with the time t (seconds) from thestart.

$\begin{matrix}{{{Vc}(t)} = {3.3*\text{?}}} & (4)\end{matrix}$ ?indicates text missing or illegible when filed

Here, the values of “e” and “T” are the same as in the explanation forFIG. 4 .

As illustrated in the graph of FIG. 5 , it can be seen that, in the caseof the resistance constant Rs (2 k Ω), at the latest the time of 145 μs,the potential Vc of the signal line L goes below the threshold Vil (0.8V), which means that the IO buffer 12 reads “0” from the signal line Lat the latest the time of 145 μs. On the other hand, it can be seenthat, in the case of the resistance constant Rw (10 k Ω), the potentialVc of the signal line L remains above the threshold Vil (0.8 V) up tothe time of 250 μs at the earliest, which means that the IO buffer 12reads “1” from the signal line L up to the time of 250 μs at theearliest. For example, 200 μs after the IO buffer 12 starts in the highimpedance state (“oe=0”), the IO buffer 12 reads “0” from signal line Lin the case of the resistance constant Rs (2 k Ω), and reads “1” fromthe signal line L in the case of the resistance constant Rw (10 k Ω).

(1-5. Timing Charts)

FIGS. 6A to 6D each illustrate a timing chart of the signals (the OUTsignal, the OE signal, and the IN signal) between the IO buffer controlunit 14 and the 10 buffer 12 for each combination of the resistormounting position MP and the resistor constant R. FIG. 6A illustratesthe timing chart TC3 in the case of the set value 3 illustrated in FIG.3A, FIG. 6B illustrates the timing chart TC2 in the case of the setvalue 2 illustrated in FIG. 3B, FIG. 6C illustrates the timing chart TC1in the case of the set value 1 illustrated in FIG. 3C, and FIG. 6Dillustrates the timing chart TC0 in the case of the set value 0illustrated in FIG. 3D.

Here, the IN signal illustrated in FIGS. 6A to 6D is expressed by “0” or“1”, which is obtained by the result of reading the potential Vc of thesignal line L illustrated in FIGS. 4 and 5 by the IO buffer 12 (LVTTLbuffer). The IO buffer 12 determines that, in the state of Vc>Vih (2.0V), the IN signal is “1” (hereafter may be referred to as “in =1”). TheIO buffer 12 determines that, in the state of Vil (0.8 V)<Vc<Vih (2.0V), the IN signal is indefinite or uncertain (it is not certain whetherit is “0” or “1”). To the contrary, the IO buffer 12 determines that, inthe state of Vc>Vil (0.8 V), the IN signal is “0” (hereafter may bereferred to as “in =0”).

(1-6. Set Value Reading Process)

The IO buffer control unit 14 reads the set value at the power-on of thesemiconductor integrated circuit 3 before the firmware is started up,which is called a set value reading process. Next, with reference to thetiming charts in FIGS. 6A to 6D and the flowchart in FIG. 7 , a setvalue reading processing procedure RT1, which is a specific procedure ofthe set value reading process, will be described for each of fourcombinations (four patterns) of the resistor mounting position MP andthe resistance constant R. The IO buffer control unit 14 initiates theset value reading processing procedure RT1, to proceed to step SP1.

(1-6-1. Set Value 3)

First, the case where the resistor 6 s having the resistor constant Rsis mounted to the resistor mounting position MPu and no resistor ismounted to the resistor mounting position MPI as illustrated in FIG. 3A,which is the case of the set value being 3, will be explained withreference to the timing chart TC3 illustrated in FIG. 6A.

In step SP1 after the power is turned on, the IO buffer control unit 14sets the IO buffer 12 to the high impedance state by setting the outputsignals to “out=0” and “oe=0”, reads, at time T0 after a lapse of acertain time period, the value of the IN signal as a first signal at afirst time point, and proceeds to step SP2. Note that, in practice, attime T0 when the reset signal of the semiconductor integrated circuit 3is turned off from on after the semiconductor integrated circuit 3 isturned on, the 10 buffer control unit 14 reads the value of the INsignal. Here, since the resistor 6 s is mounted at the resistor mountingposition MPu and the signal line L is pulled up at 3.3 V, the IN signalis “1”. In step SP2, the IO buffer control unit 14 determines whether ornot the value of the IN signal read in step SP1 is “1”. Here, the valueof the IN signal read in step SP1 is “1”, and thus the IO buffer controlunit 14 obtains a positive result in step SP2 and proceeds to step SP3.

In step SP3, the IO buffer control unit 14 sets at time T1 the outputsignals to “out=0” and “oe=1” so as to cause the IO buffer 12 to output“0” as a second signal at a second time point, and after an elapse of acertain time period, proceeds to step SP4. In this step SP3, the IObuffer control unit 14 outputs the OUT signal whose value has a logiclevel different from the value of the IN signal read in step SP1.

In step SP4, the IO buffer control unit 14 sets at time T2 the outputsignals to “out=0” and “oe=0” again so as to set the IO buffer 12 to thehigh impedance state, reads, at time T4 after an elapse of 115 μs, thevalue of the IN signal as a third signal at a third time point, andproceeds to step SP7. Note that since the clock frequency of the OSC4 is10 MHz (the clock cycle 0.1 μs), the IO buffer control unit 14 countsthe progress of 115 μs by waiting 1150 clocks. Here, the resistanceconstant is Rs. In this case, after 95 μs elapse from time T2 (t=0 μs inFIG. 4 ), the potential of the signal line L in the case of theresistance constant Rs becomes Vc>Vih (2.0 V), that is, the IN signalbecomes 1 (“in =1”). That is, the IN signal is 1 (“in =1”) even at thetime T4 when 95 μs or more have passed from the time T2.

In step SP7, the IO buffer control unit 14 sets the output signals to“out=tx” and “oe=1” at time T8 so as to transfer the signal controlright of the IO buffer 12 to the transmitter 16, and proceeds to stepSP8.

In step SP8, the IO buffer control unit 14 determines the current setvalue based on the value of the IN signal read in step SP1 and the valueof the IN signal read in step SP4, and proceeds to step SP9.Specifically, the IO buffer control unit 14 sets the value of the INsignal read in step SP1 to the most significant bit of the two bits inthe binary number representation in the set value, and sets the value ofthe IN signal read in step SP4 to the least significant bit of the twobits in the binary number representation in the set value. In this case,since the value of the IN signal read in step SP1 is “1”, the mostsignificant bit of the set value is “1”, and since the value of the INsignal read in step SP4 is “1”, the least significant bit of the setvalue is “1”. Accordingly, the IO buffer control unit 14 determines thatthe current set value is “11b” in the binary number representation, andthus determines that the set value is 3 based on this “11 b”.

In step SP9, the IO buffer control unit 14 stores the determined setvalue in the memory 18 and proceeds to step SP10 to complete the setvalue reading processing procedure RT1. In this way, the IO buffercontrol unit 14 reads the value of the IN signal twice, and treats thevalue of the IN signal read in the first time as the most significantbit and treats the value of the IN signal read in the second time as theleast significant bit in the binary number representation in the setvalue, so as to determine the set value.

(1-6-2. Set Value 2)

Next, the case where the resistor 6 w having the resistor constant Rw ismounted to the resistor mounting position MPu and no resistor is mountedto the resistor mounting position MPI as illustrated in FIG. 3B, whichis the case of the set value being 2, will be explained with referenceto the timing chart TC2 illustrated in FIG. 6B.

In step SP1 after the power is turned on, the IO buffer control unit 14sets the IO buffer 12 to the high impedance state by setting the outputsignals to “out=0” and “oe=0”, reads out the value of the IN signal attime T0 after an elapse of a certain time period, and proceeds to stepSP2. Here, since the resistor 6 w is mounted at the resistor mountingposition MPu and the signal line L is pulled up to 3.3 V, the IN signalis “1”. In step SP2, the IO buffer control unit 14 determines whether ornot the value of the IN signal read in step SP1 is “1”. Here, the valueof the IN signal read in step SP1 is “1”, and thus the IO buffer controlunit 14 obtains a positive result in step SP2 and proceeds to step SP3.

In step SP3, the IO buffer control unit 14 sets at time T1 the outputsignals to “out=0” and “oe=1” so as to cause the IO buffer 12 to output“0”, and after a certain period of time, proceeds to step SP4.

In step SP4, the IO buffer control unit 14 sets at time T2 the outputsignals to “out=0” and “oe=0” again so as to set the IO buffer 12 to thehigh impedance state, reads, at time T4 after 115 μs elapse from T2, thevalue of the IN signal, and proceeds to step SP7. Here, the resistanceconstant is Rw. In this case, from time T2 (t=0 μs in FIG. 4 ) until thetime (T5) when 135 μs have elapsed from time T2, the potential Vc of thesignal line L in the case of the resistance constant Rw is smaller thanVil (0.8 V) (Vc<Vil (0.8 V)), and thus the IN signal is maintained to 0(“in =0”). Thus, the IN signal is 0 (“in =0”), at time T4, which isbefore 135 μs have elapsed from time T2.

In step SP7, the IO buffer control unit 14 sets the output signals to“out=tx” and “oe=1” at time T8 so as to transfer the signal controlright of the IO buffer 12 to the transmitter 16, and proceeds to stepSP8.

In step SP8, the IO buffer control unit 14 determines the current setvalue based on the value of the IN signal read in step SP1 and the valueof the IN signal read in step SP4, and proceeds to step SP9. In thiscase, since the value of the IN signal read in step SP1 is “1”, the mostsignificant bit of the set value is determined to be “1”, and since thevalue of the IN signal read in step SP4 is “0”, the least significantbit of the set value is determined to be “0”. Accordingly, the IO buffercontrol unit 14 determines that the current set value is “10b” in thebinary number representation, and thus determines that the set value is2 based on this “10b”.

In step SP9, the IO buffer control unit 14 stores the determined setvalue in the memory 18 and proceeds to step SP10 to complete the setvalue reading processing procedure RT1.

(1-6-3. Set Value 1)

Next, the case where the resistor 6 w having the resistor constant Rw ismounted to the resistor mounting position MPI and no resistor is mountedto the resistor mounting position MPu as illustrated in FIG. 3C, whichis the case of the set value being 1, will be explained with referenceto the timing chart TC1 illustrated in FIG. 6C.

In step SP1 after the power is turned on, the IO buffer control unit 14sets the IO buffer 12 to the high impedance state by setting the outputsignals to “out=0” and “oe=0”, reads out the value of the IN signal attime T0 after a certain time period, and proceeds to step SP2. Here,since the resistor 6 w is mounted at the resistor mounting position MPIand the signal line L is pulled down to 0 V, the IN signal read in stepSP1 is “0”. In step SP2, the IO buffer control unit 14 determineswhether or not the value of the IN signal read in step SP1 is “1”. Here,the value of the IN signal read in step SP1 is “0”, so the IO buffercontrol unit 14 obtains a negative result in step SP2 and proceeds tostep SP5.

In step SP5, the IO buffer control unit 14 sets at time T1 the outputsignals to “out=1” and “oe=1” so as to cause the IO buffer 12 to output“1”, and after a certain time period, proceeds to step SP6. In this stepSP5, the IO buffer control unit 14 outputs the OUT signal whose valuehas a logic level different from the value of the IN signal read in stepSP1.

In step SP6, the IO buffer control unit 14 sets at time T2 the outputsignals to “out=0” and “oe=0” again as so to set the IO buffer 12 to thehigh impedance state, reads, at time T7 after 200 μs elapse from timeT2, the value of the IN signal as a third signal at a third time point,and proceeds to step SP7. Note that since the clock frequency of theOSC4 is 10 MHz (the clock cycle 0.1 μs), the IO buffer control unit 14counts the progress of 200 μs by waiting 2000 clocks. Here, theresistance constant is Rw. In this case, from time T2 (t=0 μs in FIG. 5) until the time when 250 μs have elapsed from time T2, the potential Vcof the signal line L in the case of the resistance constant Rw isgreater than Vih (2.0 V) (Vc>Vih (2.0 V)), and thus the IN signal ismaintained at 1 (“in =1”). Therefore, the IN signal is 1 (“in =1”) attime T7, which is before 250 μs have elapsed from time T2.

In step SP7, the IO buffer control unit 14 sets the output signals to“out=tx” and “oe=1” at time T8 so as to transfer the signal controlright of the IO buffer 12 to the transmitter 16, and proceeds to stepSP8.

In step SP8, the IO buffer control unit 14 determines the current setvalue based on the value of the IN signal read in step SP1 and the valueof the IN signal read in step SP6, and proceeds to step SP9. In thiscase, since the value of the IN signal read in step SP1 is “0”, the mostsignificant bit of the set value is determined to be“0”, and since thevalue of the IN signal read in step SP6 is “1”, the least significantbit of the set value is determined to be “1”. Accordingly, the IO buffercontrol unit 14 determines that the current set value is “01b” in thebinary number representation, and thus determines that the set value is1 based on this “01 b”.

In step SP9, the IO buffer control unit 14 stores the determined setvalue in the memory 18 and proceeds to step SP10 to complete the setvalue reading processing procedure RT1.

(1-6-4. Set Value 0)

Next, the case where the resistor 6 s having the resistor constant Rs ismounted to the resistor mounting position MPI and no resistor is mountedto the resistor mounting position MPu as illustrated in FIG. 3D, whichis the case of the set value being 0, will be explained with referenceto the timing chart TC0 illustrated in FIG. 6D.

In step SP1 after the power is turned on, the IO buffer control unit 14sets the IO buffer 12 to the high impedance state by setting the outputsignals to “out=0” and “oe=0”, reads out the value of the IN signal attime T0 after a certain time period, and proceeds to step SP2. Here,since the resistor 6 s is mounted at the resistor mounting position MPIand the signal line L is pulled down to 0 V, the value of the IN signalread in step SP1 is “0”. In step SP2, the IO buffer control unit 14determines whether or not the value of the IN signal read in step SP1 is“1”. Here, the value of the IN signal read in step SP1 is “0”, so the IObuffer control unit 14 obtains a negative result in step SP2 andproceeds to step SP5.

In step SP5, the IO buffer control unit 14 sets at time T1 the outputsignals to “out=1” and “oe=1” so as to cause the IO buffer 12 to output“1”, and after a certain time period, proceeds to step SP6.

In step SP6, the IO buffer control unit 14 sets at time T2 the outputsignals to “out=0” and “oe=0” again so as to set the IO buffer 12 to thehigh impedance state, reads, at time T7 after 200 μs elapse from timeT2, the value of the IN signal, and proceeds to step SP7. Here, theresistance constant is Rs. In this case, after 145 μs elapse from timeT2 (t=0 μs in FIG. 5 ), the potential Vc of the signal line L in thecase of the resistance constant Rs becomes larger than Vih (Vc>Vih (0.8V)), that is, the IN signal becomes 0 (“in =0”). That is, even at thetime T7 when 145 μs or more have passed from the time T2, the IN signalis 0 (“in =0”).

In step SP7, the IO buffer control unit 14 sets the output signals to“out=tx” and “oe=1” at time T8 so as to transfer the signal controlright of the IO buffer 12 to the transmitter 16, and proceeds to stepSP8.

In step SP8, the IO buffer control unit 14 determines the current setvalue based on the value of the IN signal read in step SP1 and the valueof the IN signal read in step SP6, and proceeds to step SP9. In thiscase, since the value of the IN signal read in step SP1 is “0”, the mostsignificant bit of the set value is determined to be “0”, and since thevalue of the IN signal read in step SP6 is “0”, the least significantbit of the set value is determined to be “0”. Accordingly, the IO buffercontrol unit 14 determines that the current set value is “00b” in thebinary number representation, and thus determines that the set value is0 based on this “01 b”.

In step SP9, the IO buffer control unit 14 stores the determined setvalue in the memory 18 and proceeds to step SP10 to complete the setvalue reading processing procedure RT1.

(1-6. Effects)

In the above configuration, the circuit board 2 is configured such that,depending on the set value to be used in the initial operation of thesemiconductor integrated circuit 3, one of the resistors 6 s and 6 wwhose resistance values are different from each other, is selectivelymounted on one of the resistor mounting positions MPu and MPI. That is,the circuit board 2 is configured such that one of the pull-up resistorand the pull-down resistor whose resistance values are different fromeach other can be selectively mounted thereon.

Further, the semiconductor integrated circuit 3 first reads the state ofthe terminal 11 in the high impedance state so as to obtain one bit ofthe set value, and next changes the state of the terminal 11 to 0 or 1,which has the logic level different from the state read earlier, returnsthe state of the terminal to the high impedance state, and reads, aftera certain time period, the state of the terminal 11 again, so as toobtain another bit of the set value. Therefore, the semiconductorintegrated circuit 3 can take in the 2-bit set value (can select one offour different set values) at the terminal 11, which is the singleterminal.

In a conventional art, a set value of 1 bit per terminal is read in ahigh impedance state by using a pull-up resistor or a pull-down resistorhaving one resistance value. However, since the semiconductor integratedcircuit 3 according to a first embodiment is configured as describedabove, even when the number of terminals that can be used to capture theinformation of the set value is the same as that of the conventionalart, the semiconductor integrated circuit 3 can capture twice the numberof the set values than the conventional art.

Here, it is also conceivable that, as a comparative example, a circuitboard 2 may be configured to omit the resistor(s) and have a serialinterface IC connected to the signal line L such that the semiconductorintegrated circuit 3 can receive a binary set value as the IN signalfrom the serial interface IC to obtain the set value. However, in such acomparative example, it is necessary to add the serial interface IC, andthus the configuration of the circuit board 2 becomes more complex andmore costly.

To the contrary, the circuit board 2 according to a first embodiment isconfigured to have the resistor mounting positions MPu and MPI such thatone of the resistors 6 s and 6 w having different resistance values canbe mounted to either one of the resistor mounting positions MPu and MPI.This can simplify the configuration and lowers the cost of the circuitboard 2.

According to the configuration described above, the semiconductorintegrated circuit 3 serving as an integrated circuit includes theterminal 11 that is to be connected to the power supply Vcc having thepredetermined potential and the ground potential GND and is to beconnected to one of the resistors 6 (impedance elements) havingdifferent resistance values as characteristics of the impedanceelements), wherein the semiconductor integrated circuit 3 is configuredto detect, upon changing the potential of one of the electrodes of theresistor 6 that is selectively connected to the terminal 11, a change inthe electrical characteristics of the terminal 11 based on thecharacteristics of the resistor 6, to determine (select) one of aplurality of setting conditions for the operation of the semiconductorintegrated circuit 3, and store the determined one setting condition inthe memory 18, so as to operate the semiconductor integrated circuit 3based on the stored setting condition.

This allows the semiconductor integrated circuit 3 to determine one ofthe plurality of setting conditions for operating the semiconductorintegrated circuit 3 by detecting characteristics of one of theresistors 6, having different electrical characteristics from eachother, that is selectively mounted to the same resistor mountingposition MP.

(2. Second Embodiment)

(2-1. Printer Configuration)

As illustrated in FIG. 8 , where the same reference numerals aredesignated to the components corresponding to those in FIGS. 1 and 2 , aprinter 101 according to a second embodiment is different from theprinter 1 according to a first embodiment in that a circuit board 102 isprovided in place of the circuit board 2, but the other configurationsare the same as in a first embodiment.

(2-2. Configuration of Circuit Board)

As illustrated in FIG. 8 , the circuit board 102 according to a secondembodiment is different from the circuit board 2 according to a firstembodiment in that a semiconductor integrated circuit 103 is provided inplace of the semiconductor integrated circuit 3 to the circuit board 102and resistors 6 a, 6 b, 6 c, and 6 d instead of the resistors 6 s and 6w can be mounted to the circuit board 102, but the other configurationsare the same as or similar to those of a first embodiment. Thesemiconductor integrated circuit 103 according to a second embodiment isdifferent from the semiconductor integrated circuit 3 according to afirst embodiment in that an IO buffer control unit 114 in place of theIO buffer control unit 14 is provided, but the other configurations arethe same as or similar to those of a first embodiment.

The memory 18 stores in advance a set value replacement correspondencetable TB1 illustrated in FIG. 16 (described later). The memory 18 isconfigured to store therein the value of the “in” signal received fromthe IO buffer control unit 114. The IO buffer control unit 14 determinesthe set value (i.e., set value 7, set value 6, set value 5, set value 4,set value 3, set value 2, set value 1, and set value 0) for initialoperation of the semiconductor integrated circuit 3, based on aplurality of values of the “in” signal stored in the memory 18 withreference to the set value replacement correspondence table TB1 (seeFIG. 16 ). The memory 18 is configured to store therein the set valuethat is determined by the IO buffer control unit 14.

FIG. 9 illustrates an equivalent circuit of the circuit board 102according to a second embodiment, which is obtained by replacing thecapacitor 8 and the opposing device 10 of the circuit board with thecapacitor 9 having the load capacitance equivalent thereof. Thecapacitance value C of the capacitor 9 is 50 pF (C=50 pF). The capacitor8 may contain a parasitic capacitance between the signal line L and 0 V.

The resistors 6 (6 a, 6 b, 6 c, and 6 d) are resistor elements such aschip resistors. Only one of the resistors 6 a, 6 b, 6 c, and 6 d isselectively mounted on either one of the resistor mounting positions MPuand MPI. In other words, the resistors 6 will not be mounted at both ofthe resistor mounting positions MPu and MPI. In the following, theresistors 6 a, 6 b, 6 c and 6 d may be referred to as resistors 6. Theresistance constants Ra, Rb, Rc and Rd of the resistors 6 a, 6 b, 6 cand 6 d are, for example, 1 k Ω, 5.1 k Ω, 20 k Ω, and 100 k Ω,respectively.

(2-3. Combinations of Resistor Mounting Position and Resistor Constant)

FIGS. 10A, 10B, 10C, 10D, 10E, 10F, 10G and 10H illustrate combinationsof the resistance constant R (Ra, Rb, Rc, Rd) of the resistor 6 and theresistor mounting position MP (MPu, MPI) in which the resistor 6 can bemounted on the circuit board 102. The semiconductor integrated circuit103 is configured to detect (read) from the signal line L one of eightdifferent set values of 7, 6, 5, 4, 3, 2, 1, and 0 according to one ofeight different combinations (eight different patterns) of the resistormounting position MP and the resistor constant R. In each of FIGS. 10Ato 10H, the resistor mounting position MP and the resistance constant Rand the set value read by the semiconductor integrated circuit 103 areas follows.

FIG. 10A: the resistor mounting position MPu, the resistance constantRa, the set value 7

FIG. 10B: the resistor mounting position MPu, the resistance constantRb, and the set value 6

FIG. 10C: the resistor mounting position MPu, the resistance constantRc, and the set value 5

FIG. 10D: the resistor mounting position MPu, the resistance constantRd, and the set value 4

FIG. 10E: the resistor mounting position MPI, the resistance constantRd, and the set value 3

FIG. 10F: the resistor mounting position MPI, the resistance constantRc, and the set value 2

FIG. 10G: the resistor mounting position MPI, the resistance constantRb, and the set value 1

FIG. 10H: the resistor mounting position MPI, the resistance constantRa, and the set value 0

That is, for example, in a case illustrated in FIG. 20A, in which theresistor 6 a having the resistor constant Ra is mounted at the resistormounting position MPu and no resistor is mounted at the resistormounting position MPI, the semiconductor integrated circuit 103 readsthe set value of 7.

(2-4. Relationship Between Elapsed Time and Potential of Signal Line)

(2-4-1. Case where the Resistor 6 a, 6 b, 6 c or 6 d is Mounted at theResistor Mounting Position MPu)

FIG. 11 illustrates the graph illustrating a change in the potential ofthe potential Vc of the signal line L, starting from L=0 V in the statewhere the IO buffer 12 is in the high impedance state (in the setting“oe=0”) in a case where the resistor 6 a, 6 b, 6 c, or 6 d is mounted tothe resistor mounting position MPu, which is calculated by using thestep response calculation formula for the RC circuit. In this graphillustrated in FIG. 11 , the constant of the resistor 6 that can bemounted at the resistor mounting position MPu is one of the resistanceconstants Ra (1 k Ω), Rb (5.1 kΩ), Rc (20 k Ω), and Rd (100 k Ω). InFIG. 11 , the potential changes in these four cases are illustrated. Thepotential Vc of the signal line L is expressed by the equation (1)described above in relation with the time t (seconds) from the start.

The value of “T” is calculated by the following Equation (5) when theresistance constant is Ra (1 k Ω), is calculated by the followingEquation (6) when the resistance constant is Rb (5.1 k Ω), is calculatedby the following Equation (7) when the resistance constant is Rc (20 kΩ), and is calculated by the following Equation (8) when the resistanceconstant is Rd (100 k Ω).

τ=C*Ra=50*10⁻⁹*1*10³=50*10⁻⁶=[μs]  (5)

τ=C*Rb=50*10⁻⁹*5.1*10³=255*10⁻⁶=255[μs]  (6)

τ=C*Rc=50*10⁻⁹*20*10³=1000*10⁻⁶=1000[μs]  (7)

τ=C*Rd=50*10⁻⁹*100*10³=5000 ⁻⁶=5000[μs]  (8)

As illustrated in the graph of FIG. 11 , it can be seen that, in thecase of the resistance constant Ra (1 k Ω), at the latest the time of 47μs, the potential Vc of the signal line L exceeds the threshold Vih (2V), which means that the IO buffer 12 reads “1” from the signal line Lat the latest the time of 47 μs. Also, it can be seen that, in the caseof the resistance constant Rb (5.1 k Ω), the potential Vc of the signalline L does not exceed the threshold Vil (0.8 V) until the time of 70 μsat the earliest, which means that the IO buffer 12 reads “0” from thesignal line L until the time of 70 μs at the earliest. For example, 60μs after the IO buffer 12 starts in the high impedance state (“oe=0”),the IO buffer 12 reads “1” from signal line L in the case of theresistance constant Ra (1 k Ω), and reads “0” from the signal line L inthe case of the resistance constant Rb (5.1 k Ω).

(2-4-2. Case where the Resistor 6 a, 6 b, 6 c or 6 d is Mounted at theResistor Mounting Position MPI)

FIG. 12 illustrates the graph illustrating a change in the potential ofthe potential Vc of the signal line L, starting from L=3.3 V in thestate where the 10 buffer 12 is in the high impedance state (in thesetting “oe=0”) in a case where the resistor 6 a, 6 b, 6 c, or 6 d ismounted to the resistor mounting position MPI, which is calculated byusing the step response calculation formula for the RC circuit. In thisgraph illustrated in FIG. 12 , the constant of the resistor 6 that canbe mounted at the resistor mounting position MPI is one of theresistance constants Ra (1 k Ω), Rb (5.1 kΩ), Rc (20 k Ω), and Rd (100 kΩ). In FIG. 12 , the potential changes in these four cases areillustrated. The potential Vc of the signal line L is expressed by theequation (4) described above in relation with the time t (seconds) fromthe start.

Here, “e” and “T” are the same as in FIG. 11 .

As illustrated in the graph of FIG. 12 , it can be seen that, in thecase of the resistance constant Ra (1 k Ω), the potential Vc of thesignal line L goes below the threshold Vil (0.8 V) at the latest thetime of 71 μs, which means that the IO buffer 12 reads “0” from thesignal line L at the latest the time of 71 μs. Also, it can be seenthat, in the case of the resistance constant Rb (5.1 k Ω), the potentialVc of the signal line L remains above the threshold Vih (2 V) up to thetime of 127 μs at the earliest, which means that the IO buffer 12 reads“1” from the signal line L until the time of 127 μs at the earliest. Forexample, 100 μs after the IO buffer 12 starts in the high impedancestate (“oe=0”), the IO buffer 12 reads “0” from signal line L in thecase of the resistance constant Ra (1 k Ω), and reads “1” from thesignal line L in the case of the resistance constant Rb (5.1 k Ω).

(2-5. Timing Charts)

FIGS. 13A to 13D and 14A to 14D each illustrate a timing chart of thesignals (the OUT signal, the OE signal, and the IN signal) between theIO buffer control unit 14 and the IO buffer 12 for each combination ofthe resistor mounting position MP and the resistor constant R. FIG. 13Aillustrates the timing chart TC7 in the case of the set value being 7illustrated in FIG. 10A, FIG. 13B illustrates the timing chart TC6 inthe case of the set value being 6 illustrated in FIG. 10B, FIG. 13Cillustrates the timing chart TC5 in the case of the set value being 5illustrated in FIG. 10C, FIG. 13D illustrates the timing chart TC4 inthe case of the set value being 4 illustrated in FIG. 10D, FIG. 14Aillustrates the timing chart TC3 in the case of the set value being 3illustrated in FIG. 10E, FIG. 14B illustrates the timing chart TC2 inthe case of the set value being 2 illustrated in FIG. 10F, FIG. 14Cillustrates the timing chart TC1 in the case of the set value being 1illustrated in FIG. 10G, and FIG. 14D illustrates the timing chart TC0in the case of the set value being 0 illustrated in FIG. 10H.

Here, as in a first embodiment described above, the IN signal is “0” or“1” obtained by the result of reading the potential Vc of the signalline L illustrated in FIGS. 11 and 12 by the IO buffer 12 (the LVTTLbuffer). The IO buffer 12 determines that, in the state of Vc>Vih (2.0V), the IN signal is “1” (hereafter may be referred to as “in =1”). TheIO buffer 12 determines that, in the state of Vil (0.8 V)<Vc<Vih (2.0V), the IN signal is indefinite or uncertain (it is not certain whetherit is “0” or “1”). To the contrary, the IO buffer 12 determines that, inthe condition of Vc>Vil (0.8 V), the IN signal is “0” (hereafter may bereferred to as “in =0”).

Times Tua, Tub, Tuc, and Tud in FIG. 13 are the time lengths from timeT2 to the time when “in =1” is determined, in the cases where theresistor 6 a, 6 b, 6 c, and 6 d are mounted to the resistor mountingposition MPu, respectively. Times Tda, Tdb, Tdc, and Tdd in FIG. 14 arethe time lengths from time T2 to the time when “in =0” is determined, inthe cases where the resistors 6 a, 6 b, 6 c, and 6 d are mounted to theresistor mounting position MPI, respectively.

Times Tiub, Tiuc, and Tiud in FIG. 13 are the time lengths from time T2to the time when the IN signal become indefinite, in the cases where theresistors 6 b, 6 c, and 6 d are mounted to the resistor mountingposition MPu, respectively. Times Tidb, Tidc, and Tidd in FIG. 14 arethe time lengths from time T2 to the time when the IN signal becomeindefinite, in the cases where the resistors 6 b, 6 c, and 6 d aremounted to the resistor mounting position MPI, respectively.

As illustrated in FIGS. 11 and 12 , the following values are obtained,respectively, in a second embodiment. In the case where the resistor 6 ais mounted at the resistor mounting position MPu, time Tua is 47 μs. Inthe case where the resistor 6 b is mounted at the resistor mountingposition MPu, time Tiub is 70 μs and time Tub is 238 μs. In the casewhere the resistor 6 c is mounted at the resistor mounting position MPu,time Tiuc is 277 μs and time Tuc is 932 μs. In the case where theresistor 6 d is mounted at the resistor mounting position MPu, time Tiudis 1388 μs. In the case where the resistor 6 a is mounted at theresistor mounting position MPI, time Tda is 71 μs. In the case where theresistor 6 b is mounted at the resistor mounting position MPI, time Tidbis 127 μs and time Tdb is 362 μs. In the case where the resistor 6 c ismounted at the resistor mounting position MPI, time Tidc is 500 μs andtime Tdc is 1417 μs. In the case where the resistor 6 d is mounted atthe resistor mounting position MPI, time Tidd is 2503 μs.

Times T3, T4 and T5 illustrated in FIGS. 13A to 14D are the times whenthe IO buffer control unit 114 reads the value of the IN signal in stepsSP15, SP16 and SP17 in the set value reading processing procedure RT101in FIG. 15 , or steps SP20, SP21, and SP22 in the set value readingprocessing procedure RT101 in FIG. 15 .

In the case where the resistor 6 is mounted at the resistor mountingposition MPu, times T3, T4 and T5 are set such that the Tua<T3<Tiub,Tub<T4<Tiuc, and Tuc<T5<Tiud. Specifically, in a second embodiment, inthe case where the resistor 6 is mounted at the resistor mountingposition MPu, time T3 is 60 μs, time T4 is 260 μs, and time T5 is 1100μs.

In the case where the resistor 6 is mounted at the resistor mountingposition MPI, times T3, T4 and T5 are set such that Tda<T3<Tidb,Tdb<T4<Tidc, and Tdc<T5<Tidd. Specifically, in a second embodiment, inthe case where the resistor 6 is mounted at the resistor mountingposition MPI, time T3 is 100 μs, time T4 is 450 μs, and time T5 is 1600μs.

(2-6. Set Value Replacement Correspondence Table) Here, the value of theIN signal read by the IO buffer control unit 114 at step SP11 (firsttime point) in the set value reading processing procedure RT101 (FIG. 15) may also be referred to as a read value at the first time point (or afirst time point read value). Further, the value of the IN signal readby the IO buffer control unit 114 at step SP15 or SP20 (third timepoint) in the set value reading processing procedure RT101 may also bereferred to as a read value at the third time point (or a third timepoint read value). Further, the value of the IN signal read by the IObuffer control unit 114 at step SP16 or SP21 (fourth time point) in theset value reading processing procedure RT101 may also be referred to asa read value at the fourth time point (or a fourth time point readvalue). Further, the value of the IN signal read by the IO buffercontrol unit 114 at step SP17 or SP22 (fifth time point) in the setvalue reading processing procedure RT101 may also be referred to as aread value at the fifth time point (or a fifth time point read value).

FIG. 16 illustrates the set value replacement correspondence table TB1.The set value reading correspondence table TB1 is a table that is usedto replace (i.e., convert) the values of the IN signal read by the IObuffer control unit 114 four times at the first, third, fourth, andfifth time points in the set value reading processing procedure RT101,to the actual current set value. For example, when the read values atthe first, third, fourth, and fifth time points are all “1, the currentset value is determined to be 7 (i.e., “111b” in binary representation).

(2-7. Set Value Reading Process)

The IO buffer control unit 114 reads the set values before the firmwareis started up after the power-on of the semiconductor integrated circuit103, which is called the set value reading process. Next, with referenceto the timing charts in FIGS. 13A to 13D and 14A to 14D and theflowchart in FIG. 15 , the set value reading processing procedure RT101,which is a specific processing procedure of the set value readingprocess, will be described for three patterns as representatives out ofeight combinations (eight patterns) of the resistor mounting position MPand the resistance constant R. The IO buffer control unit 114 initiatesthe set value reading processing procedure RT101 to proceed to stepSP11.

(2-7-1. Set Value 7)

First, a case where the resistor 6 a having the resistor constant Ra ismounted to the resistor mounting position MPu and no resistor is mountedto the resistor mounting position MPI as illustrated in FIG. 10A, whichis the case of the set value being 7, will be explained with referenceto the timing chart TC7 illustrated in FIG. 13A.

In step SP11 after the power is turned on, the IO buffer control unit114 sets the output signals to “out=0” and “oe=0” so as to set the IObuffer 12 to the high impedance state, reads, at time T0 after a lapseof a certain time period, the value of the IN signal as a first signalat a first time point (a first time point read value), stores the firsttime point read value in the memory 18, and proceeds to step SP12. Notethat, in practice, when the reset signal of the semiconductor integratedcircuit 103 is turned off from on after the semiconductor integratedcircuit 103 is turned on, the 10 buffer control unit 114 reads at timeT0 the value of the IN signal. Here, since the resistor 6 a is mountedat the resistor mounting position MPu and the signal line L is pulled upto 3.3 V, the IN signal read in step SP11 is “1”. In step SP12, the IObuffer control unit 114 determines whether or not the value of the INsignal read in step SP11 is “1”. Here, the value of the IN signal readin step SP1 is “1”, so the IO buffer control unit 114 obtains a positiveresult in step SP12, and then proceeds to step SP13.

In step SP13, the IO buffer control unit 114 sets at time T1 the outputsignals to “out=0” and “oe=1” so as to cause the IO buffer 12 to output“0” as a second signal at a second time point (a second time point readvalue), and after a certain time period, proceeds to step SP14. In thisstep SP13, the IO buffer control unit 114 outputs the OUT signal whosevalue has the logic level different from the value of the IN signal readin step SP11.

In step SP14, the IO buffer control unit 114 sets at time T2 the outputsignals thereof to “out=0” and “oe=0” again so as to set the IO buffer12 to the high impedance state, reads, after 60 μs elapse, the value ofthe IN signal, and proceeds to step SP15. Note that since the clockfrequency of the OSC4 is 10 MHz (the clock cycle is 0.1 μs), the IObuffer control unit 114 counts the progress of 60 μs by waiting 6000clocks.

In step SP15, the IO buffer control unit 114 reads at time T3 the valueof the IN signal as a third signal at a third time point (a third timepoint read value), stores the read value in memory 18, and, after 260 μshave elapsed from the time (time T2) when the IO buffer 12 is put intothe high impedance state in step SP14, proceeds to step SP16.

In step SP16, the IO buffer control unit 114 reads at time T4 the valueof the IN signal as a fourth signal at a fourth time point (a fourthtime point read value) and stores the read value in memory 18, and,after 1100 μs have elapsed from the time (time T2) when the IO buffer 12is put into the high impedance state in step SP14, proceeds to stepSP17.

In step SP17, the IO buffer control unit 114 reads at time T5 the valueof the IN signal as a fifth signal at a fifth time point (a fifth timepoint read value), stores the read value in memory 18, and proceeds tostep SP23. Here, the resistance constant is Ra. In this case, after 47μs elapse from time T2 (t=0 μs in FIG. 11 ), the potential Vc of thesignal line L in the case of the resistance constant Rs becomes Vc>Vih(2.0 V), that is, the IN signal becomes 1 (“in =1”). That is, the INsignal is 1 (“in =1”) even at the times T3, T4, and T5 when 95 μs ormore have passed from the time T2.

In step SP23, the IO buffer control unit 114 sets the output signals to“out=tx” and “oe=1” at time T6 so as to transfer the signal controlright of the IO buffer 12 to the transmitter 16, and proceeds to stepSP24.

In step SP24, the IO buffer control unit 14 determines the current setvalue based on the values of the IN signal read in steps SP11, SP15,SP16, and SP17, and proceeds to step SP25. Specifically, the IO buffercontrol unit 114 determines, based on the read values at the first,third, fourth, and fifth time point read in steps SP11, SP15, SP16 andSP17 being all “1”, that the current set value is 7 (i.e., “111b” inbinary representation), with reference to the set value replacementcorrespondence table TB1 (FIG. 16 ).

In step SP25, the IO buffer control unit 114 stores the determined setvalue in the memory 18 and proceeds to step SP26 to complete the setvalue reading processing procedure RT101. In this way, the IO buffercontrol unit 114 reads the value of the IN signal four times, anddetermines the set value based on the values of the IN signal read atthe first, third, fourth, and fifth time points, with reference to theset value replacement correspondence table TB 1 (FIG. 16 ).

(2-7-2. Set Value 5)

Next, a case where the resistor 6 c having the resistor constant Rc ismounted to the resistor mounting position MPu and no resistor is mountedto the resistor mounting position MPI as illustrated in FIG. 10C, whichis the case of the set value being 5, will be explained with referenceto the timing chart TC5 illustrated in FIG. 13C.

In step SP11 after the power is turned on, the IO buffer control unit114 sets the output signals thereof to “out=0” and “oe=0” so as to setthe IO buffer 12 to a high impedance state, reads, at time T0 after alapse of a certain time period, the value of the IN signal as a firstsignal at a first time point (the first time point read value), storesthe first time point read value in the memory 18, and proceeds to stepSP12. Here, since the resistor 6 c is mounted at the resistor mountingposition MPu and the signal line L is pulled up at 3.3 V, the IN signalis “1”. In step SP12, the 10 buffer control unit 114 determines whetheror not the value of the IN signal read in step SP11 is “1”. Here, thevalue of the IN signal read in step SP1 is “1”, so the 10 buffer controlunit 114 obtains a positive result in step SP12, and then proceeds tostep SP13.

In step SP13, the IO buffer control unit 114 sets at time T1 the outputsignals to “out=0” and “oe=1” so as to cause the IO buffer 12 to output“0” as a second signal at a second time point, and after a certain timeperiod, proceeds to step SP14. In this step SP13, the IO buffer controlunit 114 outputs the OUT signal whose value has the logic leveldifferent from the value of the IN signal read in step SP11.

In step SP14, the IO buffer control unit 114 sets at time T2 the outputsignals thereof to “out=0” and “oe=0” so as to set the IO buffer 12 tothe high impedance state again, reads, after 60 μs elapse, the value ofthe IN signal, and proceeds to step SP15.

In step SP15, the IO buffer control unit 114 reads at time T3 the valueof the IN signal as a third signal at a third time point, stores theread value in memory 18, and, after 260 μs have elapsed from the time(time T2) when the IO buffer 12 is put into the high impedance state instep SP14, proceeds to step SP16.

In step SP16, the IO buffer control unit 114 reads at time T4 the valueof the IN signal as a fourth signal at a fourth time point and storesthe read value in memory 18, and, after 1100 μs have elapsed from thetime (time T2) when the 10 buffer 12 is put into the high impedancestate in step SP14, proceeds to step SP17.

In step SP17, the IO buffer control unit 114 reads at time T5 the valueof the IN signal as a fifth signal at a fifth time point, stores theread value in memory 18, and proceeds to step SP23. Here, the resistanceconstant is Rc. In this case, from time T2 (t=0 μs in FIG. 11 ) untilthe time when 227 μs have elapsed from time T2, the potential Vc of thesignal line L in the case of the resistance constant Rc is smaller thanVil (Vc<Vil (0.8 V)), and thus the IN signal is maintained to 0 (“in=0”). Thus, the IN signal is 0 (“in =0”) at times T3 and T4 before 227μs have elapsed from time T2. In this case, after 1100 μs elapse fromtime T2 (t=0 μs in FIG. 11 ), the potential Vc of the signal line L inthe case of the resistance constant Rc becomes larger than Vih (Vc>Vih(2.0 V)), that is, the IN signal becomes 1 (“in =1”). That is, the INsignal is 1 (“in =1”) even at the time T5 when 1100 μs or more havepassed from the time T2.

In step SP23, the IO buffer control unit 114 sets the output signals to“out=tx” and “oe=1” at time T6 so as to transfer the signal controlright of the IO buffer 12 to the transmitter 16, and proceeds to stepSP24.

In step SP24, the IO buffer control unit 14 determines the current setvalue based on the values of the IN signal read in steps SP11, SP15,SP16, and SP17, and proceeds to step SP25. Specifically, the read valueat the first time point read in step SP11 is “1”, the read values at thethird and fourth time points read in steps SP15 and SP16 are “0”, andthe read value at the fifth time point read in step SP17 is “1”.Accordingly, the IO buffer control unit 114 determines that the currentset value is 5 (i.e., “101b” in binary representation) based on the readvalues at the first, third, fourth, and fifth time point read in stepsSP11, SP15, SP16 and SP17, with reference to the set value replacementcorrespondence table TB1 (FIG. 16 ).

In step SP25, the IO buffer control unit 114 stores the determined setvalue in the memory 18 and proceeds to step SP26 to complete the setvalue reading processing procedure RT101.

(2-7-3. Set Value 1)

Next, a case where the resistor 6 b having the resistor constant Rb ismounted to the resistor mounting position MPI and no resistor is mountedto the resistor mounting position MPu as illustrated in FIG. 10G, whichis the case of the set value being 1, will be explained with referenceto the timing chart TC1 illustrated in FIG. 14C.

In step SP11 after the power is turned on, the IO buffer control unit114 sets the output signals thereof to “out=0” and “oe=0” so as to setthe IO buffer 12 to a high impedance state, reads, at time T0 after alapse of a certain time period, the value of the IN signal as a firstsignal at a first time point (the first time point read value), storesthe first time point read value in the memory 18, and proceeds to stepSP12. Here, since the resistor 6 b is mounted at the resistor mountingposition MPI and the signal line L is pulled down at 0 V, the IN signalis “0”. In step SP12, the 10 buffer control unit 114 determines whetheror not the value of the IN signal read in step SP11 is “1”. Here, thevalue of the IN signal read is “0”, so the IO buffer control unit 114obtains a negative result in step SP12, and thus proceeds to step SP18.

In step SP18, the IO buffer control unit 114 sets at time T1 the outputsignals thereof to “out=1” and “oe=1” so as to cause the IO buffer 12 tooutput “1” as a second signal at a second time point, and after acertain time period, proceeds to step SP19. In this step SP18, the IObuffer control unit 114 outputs the OUT signal whose value has the logiclevel different from the value of the IN signal read in step SP11.

In step SP19, the IO buffer control unit 114 sets at time T2 the IObuffer 12 to the high impedance state again by setting the outputsignals thereof to “out=0” and “oe=0”, and, after 100 μs elapse,proceeds to step SP20.

In step SP20, the IO buffer control unit 114 reads at time T3 the valueof the IN signal as a third signal at a third time point, stores theread value in memory 18, and, after 450 μs have elapsed from the time(time T2) when the IO buffer 12 is put into the high impedance state instep SP19, proceeds to step SP22.

In step SP21, the IO buffer control unit 114 reads at time T4 the valueof the IN signal as a fourth signal at a fourth time point, stores theread value in memory 18, and, after 1600 μs have elapsed from the time(time T2) when the IO buffer 12 is put into the high impedance state instep SP19, proceeds to step SP22.

In step SP22, the IO buffer control unit 114 reads at time T5 the valueof the IN signal as a fifth signal at a fifth time point, stores theread value in memory 18, and proceeds to step SP23. Here, the resistanceconstant is Rb. In this case, from time T2 (t=0 μs in FIG. 12 ) untiltime T7 when 127 μs have elapsed from time T2, the potential Vc of thesignal line L in the case of the resistance constant Rb is greater thanVih (Vc>Vih (2.0 V)), and thus the IN signal is maintained at 1 (“in=1”). Therefore, the IN signal is 1 (“in =1”), at time T3 before 127 μshave elapsed from time T2. In this case, after 362 μs elapse from timeT2 (t=0 μs in FIG. 12 ), the potential Vc of the signal line L in thecase of the resistance constant Rb becomes larger than Vih (Vc>Vih (0.8V)), that is, the IN signal becomes 0 (“in =0”). That is, even at timesT4 and T5 when 362 μs or more have passed from the time T2, the INsignal is 0 (“in =0”).

In step SP23, the IO buffer control unit 114 sets the output signals to“out=tx” and “oe=1” at time T6 so as to transfer the signal controlright of the IO buffer 12 to the transmitter 16, and proceeds to stepSP24.

In step SP24, the IO buffer control unit 14 determines the current setvalue based on the values of the IN signal read in steps SP11, SP20,SP21, and SP22, and proceeds to step SP25. Specifically, the read valueat the first time point read in step SP11 is “0”, the read values at thethird time point SP16 read in step SP15 is “1”, and the read values atthe fourth and fifth time points read in steps SP16 and SP17 are “0”.Accordingly, the IO buffer control unit 114 determines that the currentset value is 1 (i.e., “001 b” in binary representation) based on theread values at the first, third, fourth, and fifth time point read insteps SP11, SP15, SP16 and SP17, with reference to the set valuereplacement correspondence table TB1 (FIG. 16 ).

In step SP25, the IO buffer control unit 114 stores the determined setvalue in the memory 18 and proceeds to step SP26 to complete the setvalue reading processing procedure RT101.

(2-8. Effects)

In the above configuration, the circuit board 102 is configured suchthat, depending on the set value to be used in the initial operation ofthe semiconductor integrated circuit 103, one of the resistors 6 a, 6 b,6 c, and 6 d whose resistance values are different from each other, isselectively mounted on one of the resistor mounting positions MPu andMPI. That is, the circuit board 102 is configured such that theresistance values of the pull-up resistor and the pull-down resistor aredifferent from each other.

The semiconductor integrated circuit 3 first reads the state of theterminal 11 in the high impedance state so as to obtain one bit of theset value, and next changes the state of the terminal 11 once to 0 or 1,which has the logic level different from the state read earlier, returnsthe state of the terminal to the high impedance state, and reads againthree times (times T3, T4, and T5) the state of the terminal 11 again,so as to obtain three more bits of the set value. Therefore, thesemiconductor integrated circuit 103 can take in the set value of 3 bits(eight different set values) in the terminal 11, which is the singleterminal.

In a conventional art, a set value of 1 bit per terminal is read in ahigh impedance state by using a pull-up resistor or a pull-down resistorhaving one resistance value. However, since the semiconductor integratedcircuit 103 is configured as described above, even when the number ofterminals that can be used to capture the information of the set valueis the same as that of the conventional art, the semiconductorintegrated circuit 3 can capture four times the number of the set valuesthan the conventional art.

In other respects, the semiconductor integrated circuit 103 according toa second embodiment can achieve effects same as or similar to thesemiconductor integrated circuit 3 according to a first embodiment.

(3. Third Embodiment)

(3-1. Printer Configuration)

As illustrated in FIG. 17 , in which the same reference numerals aredesignated to elements corresponding to those in FIGS. 1 and 8 , aprinter 201 according to a third embodiment is different from theprinter 101 according to a second embodiment in that a circuit board 202is provided in place of the circuit board 102, but the otherconfigurations are the same as in a second embodiment.

(3-2. Configuration of Circuit Board)

As illustrated in FIG. 17 , the circuit board 202 according to a thirdembodiment is different from the circuit board 102 according to a secondembodiment in that a semiconductor integrated circuit 203 is provided inplace of the semiconductor integrated circuit 103, but the otherconfigurations are the same as in a second embodiment. The semiconductorintegrated circuit 203 according to a third embodiment is different fromthe semiconductor integrated circuit 103 according to a secondembodiment in that an IO buffer control unit 214 is provided in place ofthe IO buffer control unit 114 and a time measurement unit 20 is added,but the other configurations are the same as or similar to those of asecond embodiment. FIG. 18 illustrates an equivalent circuit of thecircuit board 202 with the capacitor 8 and the opposing device 10 beingreplaced by the capacitor 9 having a load capacitance equivalent tothose of the capacitor 8 and the opposing device 10.

The time measurement unit 20 measures, under the control of the IObuffer control unit 214, a logic level reversal time Tu, which is a timelength from the time (time T2) when the IO buffer 12 is put into thehigh impedance state in step SP14 or SP19 in a set value readingprocessing procedure RT201 (described below) to the time at which thelogic level of the IN signal is reversed in step SP31 or SP32.

(3-3. Combinations of Resistor Mounting Position and Resistor Constant)

As illustrated in FIGS. 10A to 10H, combinations between the resistormounting positions MPu or MPI where the resistor 6 is mounted on thecircuit board 202, and the resistance constant Rb, Rc, or Rd of theresistor 6 are the same as in a second embodiment.

(3-4. Relationship between Elapsed Time and Potential of Signal Line)(3-4-1. Case where the resistor 6 a, 6 b, 6 c or 6 d is mounted at theresistor mounting position MPu)

As illustrated in FIG. 11 , the graph of a change in the potential ofthe potential Vc of the signal line L, starting from L=0 V in the statewhere the IO buffer 12 is in the high impedance state (in the setting“oe=0”) in the case where the resistor 6 a, 6 b, 6 c, or 6 d is mountedto the resistor mounting position MPu, which is calculated by using thestep response calculation formula for the RC circuit, is the same as ina second embodiment.

(3-4-2. Case where the Resistor 6 a, 6 b, 6 c or 6 d is Mounted at theResistor Mounting Position MPI)

As illustrated in FIG. 12 , the graph of a change in the potential ofthe potential Vc of the signal line L, starting from L=3.3 V in thestate where the IO buffer 12 is in the high impedance state (in thesetting “oe=0”) in the case where the resistor 6 a, 6 b, 6 c, or 6 d ismounted to the resistor mounting position MPI, which is calculated byusing the step response calculation formula for the RC circuit, is thesame as in a second embodiment.

(3-5. Timing Charts)

As illustrated in FIGS. 13A to 13D and 14A to 14D, timing charts of thesignals (the OUT signal, the OE signal, and the IN signal) between theIO buffer control unit 14 and the IO buffer 12 for each combination ofthe resistor mounting position MP and the resistor constant R are thesame as in a second embodiment.

(3-6. Set Value Replacement Correspondence Table)

Here, at step SP11 (first time point) in the set value readingprocessing procedure RT201 (FIG. 19 ), the value of the IN signal readby the IO buffer control unit 214 may also be referred to as a readvalue at the first time point (or a first time point read value).

FIG. 20 illustrates the set value replacement correspondence tableTB201. The set value reading correspondence table TB201 is a table thatis used to replace (i.e., convert) the values of the IN signal read bythe IO buffer control unit 114 in the set value reading processingprocedure RT201 and the measured logic level reversal time Tu, to theactual current set value. In the set value replacement correspondencetable TB201, corresponding to the four resistance values of theresistors 6 a, 6 b, 6 c, and 6 d, there are four different determinationranges, having predetermined time periods respectively, for the measuredlogic level reversal time Tu. The IO buffer control unit 214 determineswhich one of the four determination ranges in the set value replacementcorrespondence table TB201 the measured logic level reversal time Tucorresponds to (falls on). In a third embodiment, the four determinationranges of the measured logic level reversal time Tu are set to be sameas each other between the case where the resistor 6 is mounted to theresistor mounting position MPu and the case where the resistor 6 ismounted to the resistor mounting position MPI. For example, when theread values at the first time point is “1” and the measured logic levelreversal time Tu is less than 80 μs, the current set value is determinedto be 7 (i.e., “111b” in binary representation).

(3-7. Set Value Reading Process)

Next, with reference to the timing charts in FIGS. 13A to 14D and theflowchart in FIG. 19 in which the same reference numerals are designatedto the steps as in FIG. 15 , a set value reading processing procedureRT201, which is a specific processing procedure of the set value readingprocess, in which the 10 buffer control unit 214 reads the set valuebefore the firmware is started up after the power-on of thesemiconductor integrated circuit 203, will be described for threepatterns as representatives out of eight combinations (eight patterns)of the resistor mounting position MP and the resistance constant R. Theset value reading processing procedure RT201 is different from the setvalue reading processing procedure RT101 (FIG. 15 ), in that steps SP15,SP16 and SP17 are replaced with step SP31, steps SP20, SP21, and SP22are replaced with step SP32, and step SP24 is replaced with step SP224,respectively, but the other steps are the same as in the set valuereading processing procedure RT101. The IO buffer control unit 214initiates the set value reading processing procedure RT201, and proceedsto step SP11

(3-7-1. Set Value 7)

First, a case where the resistor 6 a having the resistor constant Ra ismounted to the resistor mounting position MPu and no resistor is mountedto the resistor mounting position MPI as illustrated in FIG. 10A, whichis the case of the set value being 7, will be explained with referenceto the timing chart TC7 illustrated in FIG. 13A.

In steps SP11 to SP13, the IO buffer control unit 214 performs theprocesses same as in the set value reading processing procedure RT101(see FIG. 15 ), and proceeds to step SP14. In step SP14, the IO buffercontrol unit 214 sets at time T2 the output signals thereof to “out=0”and “oe=0” again so as to set the IO buffer 12 to the high impedancestate, and proceeds to step SP31.

In step SP31, the IO buffer control unit 214 monitors the value of theIN signal as the third signal at the third time point by reading it atthe clock cycles, measures by means of the time measurement unit 20, atime length from the time (time T2) when the IO buffer 12 is put in thehigh impedance state at SP14 to the time when the IN signal is changedfrom 0 (“in =0”) to 1 (“in =1”) (i.e., the time when the logic level ofthe read value is inverted), stores the time length in the memory 18,and proceeds to step SP23. Note that since the clock frequency of theOSC4 is 10 MHz (the clock cycle 0.1 μs), the IO buffer control unit 114monitors the value of the IN signal at 0.1 μs intervals. Here, theresistance constant is Ra. In this case, after 47 μs elapse from time T2(t=0 μs in FIG. 11 ), the potential Vc of the signal line L in the caseof the resistance constant Rs becomes larger than Vih (Vc>Vih (2.0 V)),that is, the IN signal becomes 1 (“in =1”). Accordingly, the measurelogic level reversal time Tu, measured by the time measurement unit 20,is 47 μs.

In step SP23, the IO buffer control unit 214 performs the processes sameas in the set value reading processing procedure RT101 (see FIG. 15 ),and proceeds to step SP224.

In step SP224, the IO buffer control unit 214 determines the current setvalue based on the value of the IN signal read in step SP11 and themeasured logic level reversal time measured in step SP31, and proceedsto step SP25. Specifically, the IO buffer control unit 214 determines,based on the read value at the first time point read in steps SP11 being1 and the measured logic level reversal time Tu measured in step SP31being 47 μs, that the current set value is 7 (i.e., “111b” in binaryrepresentation), with reference to the set value replacementcorrespondence table TB201 (FIG. 20 ).

In step SP25, the IO buffer control unit 214 performs the processes sameas in the set value reading processing procedure RT101 (see FIG. 15 ),and proceeds to step SP201 to complete the set value reading processingprocedure RT201. Thus, the IO buffer control unit 214 reads (detects)the value of the “in” signal at time T0 (the read value at the firsttime point) once, outputs from the OUT signal line a value whose logiclevel is different from that of the IN signal at time T1, puts the IObuffer 12 in the high impedance state again in time T2, measures thetime length (the logic level reversal time Tu) from time T2 to the timewhen the value of the IN signal is changed (returned) to the value readat time 0, and determines, based on the read value at the first timepoint and the measured logic level reversal time Tu with reference tothe set value reading correspondence table TB201 (FIG. 20 ), the setvalue.

(3-7-2. Set Value 5)

Next, a case where the resistor 6 c having the resistor constant Rc ismounted to the resistor mounting position MPu and no resistor is mountedto the resistor mounting position MPI as illustrated in FIG. 10C, whichis the case of the set value being 5, will be explained with referenceto the timing chart TC5 illustrated in FIG. 13C.

In steps SP11 to SP13, the IO buffer control unit 214 performs theprocesses same as in the set value reading processing procedure RT101(see FIG. 15 ), and proceeds to step SP14. In step SP14, the IO buffercontrol unit 214 sets at time T2 the output signals thereof to “out=0”and “oe=0” again so as to set the IO buffer 12 to the high impedancestate, and proceeds to step SP31.

In step SP31, the IO buffer control unit 214 monitors the value of theIN signal as the third signal at the third time point by reading it atthe clock cycles, measures by means of the time measurement unit 20, atime length from the time (time T2) when the IO buffer 12 is put in thehigh impedance state at SP14 to the time when the IN signal is changedfrom 0 (“in =0”) to 1 (“in =1”) (i.e., the time when the logic level ofthe read value is inverted), stores the time length in the memory 18,and proceeds to step SP23. Here, the resistance constant is Rc. In thiscase, after 932 μs elapse from time T2 (t=0 μs in FIG. 11 ), thepotential Vc of the signal line L in the case of the resistance constantRc becomes larger than Vih (Vc>Vih (2.0 V)), that is, the IN signalbecomes 1 (“in =1”). Accordingly, the measured logic level reversal timeTu, measured by the time measurement unit 20, is 932 μs.

In step SP23, the IO buffer control unit 214 performs the processes sameas in the set value reading processing procedure RT101 (see FIG. 15 ),and proceeds to step SP224.

In step SP224, the IO buffer control unit 214 determines the current setvalue based on the value of the IN signal read in step SP11 and themeasured logic level reversal time measured in step SP31, and proceedsto step SP25. Specifically, the IO buffer control unit 214 determines,based on the read value at the first time point read in steps SP11 being1 and the measured logic level reversal time Tu measured in step SP31being 932 μs, that the current set value is 5 (i.e., “101b” in binaryrepresentation), with reference to the set value replacementcorrespondence table TB201 (FIG. 20 ).

In step SP25, the IO buffer control unit 214 performs the processes sameas in the set value reading processing procedure RT101 (see FIG. 15 ),and proceeds to step SP201 to complete the set value reading processingprocedure RT201.

(3-7-3. Set Value 1)

Next, a case where the resistor 6 b having the resistor constant Rb ismounted to the resistor mounting position MPI and no resistor is mountedto the resistor mounting position MPu as illustrated in FIG. 10G, whichis the case of the set value being 1, will be explained with referenceto the timing chart TC1 illustrated in FIG. 14C.

In steps SP11, SP12 and SP18, the IO buffer control unit 214 performsthe procedure same as in the set value reading processing procedureRT101 (see FIG. 15 ), and proceeds to step SP19. In step SP19, the IObuffer control unit 214 sets at time T2 the output signals thereof to“out=0” and “oe=0” again so as to set the 10 buffer 12 to the highimpedance state, and proceeds to step SP32.

In step SP32, the IO buffer control unit 214 monitors the value of theIN signal as the third signal at the third time point by reading it atthe clock cycles, measures by means of the time measurement unit 20, atime length from the time (time T2) when the IO buffer 12 is put in thehigh impedance state at SP19 to the time when the IN signal is changedfrom 1 (“in =1”) to 0 (“in =0”) (i.e., the time when the logic level ofthe read value is inverted), stores the time length in the memory 18,and proceeds to step SP23. Here, the resistance constant is Rb. In thiscase, after 362 μs elapse from time T2 (t=0 μs in FIG. 12 ), thepotential Vc of the signal line L in the case of the resistance constantRb becomes less than Vil (Vc<Vil (0.8 V)), that is, the IN signalbecomes 0 (“in =0”). Accordingly, the measured logic level reversal timeTu, measured by the time measuring unit 20, is 362 μs.

In step SP23, the IO buffer control unit 214 performs the processes sameas in the set value reading processing procedure RT101 (see FIG. 15 ),and proceeds to step SP224.

In step SP224, the IO buffer control unit 214 determines the current setvalue based on the value of the IN signal read in step SP11 and themeasured logic level reversal time measured in step SP32, and proceedsto step SP25. Specifically, the IO buffer control unit 214 determines,based on the read value at the first time point read in steps SP11 being1 and the measured logic level reversal time Tu measured in step SP32being 362 μs, that the current set value is 1 (i.e., “001 b” in binaryrepresentation), with reference to the set value replacementcorrespondence table TB201 (FIG. 20 ).

In step SP25, the IO buffer control unit 214 performs the processes sameas in the set value reading processing procedure RT101 (see FIG. 15 ),and proceeds to step SP201 to complete the set value reading processingprocedure RT201.

(3-8. Effects)

In the above configuration, the circuit board 202 is configured suchthat, depending on the set value to be used in the initial operation ofthe semiconductor integrated circuit 203, one of the resistors 6 a, 6 b,6 c, and 6 d whose resistance values are different from each other, isselectively mounted on one of the resistor mounting positions MPu andMPI. That is, the circuit board 202 is configured such that theresistance values of the pull-up resistor and the pull-down resistor aredifferent from each other.

Further, the semiconductor integrated circuit 203 first reads the stateof the terminal 11 in the high impedance state so as to obtain one bitof the set value, and next changes the state of the terminal 11 to 0 or1, which has the logic level different from the state read earlier,returns the state of the terminal to the high impedance state, and,after that, measures the time length (the logic level reversal time Tu),which is the time length until the time when the state of the terminalis changed. Therefore, the semiconductor integrated circuit 203 can takein the set value of 3 bits (eight different set values) in the terminal11, which is the single terminal.

In a conventional art, a set value of 1 bit per terminal is read in ahigh impedance state by using a pull-up resistor or a pull-down resistorhaving one resistance value. However, since the semiconductor integratedcircuit 203 is configured as described above, even when the number ofterminals that can be used to capture the information of the set valueis the same as that of the conventional art, the semiconductorintegrated circuit 3 can capture four times the number of the set valuesthan the conventional art.

In addition, the semiconductor integrated circuit 203 is configured todetermine the set value based on the time length (the measured logiclevel reversal time Tu) from the time when the terminal 11 is returnedinto the high impedance state again to the time when the state of theterminal 1 is changed. Accordingly, the shorter the measured logic levelreversal time Tu, the shorter the set value can be determined.Therefore, in the case where the measured logic level reversal time Tuis short, the semiconductor integrated circuit 203 can determine the setvalue in a shorter time than a case (a second embodiment) where thesemiconductor integrated circuit determines the set value by reading thestate of the terminal the plural times at the predetermined timeintervals after the terminal 11 is returned into the high impedancestate again.

In other respects, the semiconductor integrated circuit 203 according toa third embodiment can achieve effects same as or similar to thesemiconductor integrated circuit 103 according to a second embodiment.

(3. Other Embodiments or Modifications)

In a first embodiment described above, the case has been described inwhich one of the resistors 6 s and 6 w whose resistance values aredifferent from each other is selectively mounted at one of the resistormounting positions MPu and MPI. However, the invention is not limitedthereto. For example, one of three or more resistors having resistancevalues different from one another may be selectively mounted to one ofthe resistor mounting positions MPu and MPI, so as to read 3 or more-bitset value per terminal.

In one or more embodiments described above, the case has been describedin which the resistor 6 is used as an impedance element. However, theinvention is not limited thereto. For example, in addition to theresistor 6, a coil may be added in series with the signal line L as animpedance element.

Further, in a first embodiment described above, the case has beendescribed in which one of the resistors 6 s and 6 w having differentresistance values from each other is mounted at either of the resistormounting positions MPu or MPI. However, the invention is not limitedthereto. For example, the semiconductor circuit 3 may be configured toinclude the terminal 11 to which one of a plurality of capacitors 8having different capacitance values from each other as an impedanceelement can be selectively mounted to determine the set value (settingcondition). The same is true for second and third embodiments describedabove.

Further, in a first embodiment described above, the case has beendescribed in which one of the resistors 6 s and 6 w as a chip resistoris mounted at either of the resistor mounting positions MPu or MPI.However, the invention is not limited thereto. For example, a variableresistor may be mounted on either one of the resistor mounting positionsMPu or MPI such that a resistance value of the variable resistor may beswitched to one of 2 k Ω and 10 k Ω in accordance with the set value tobe set. Similarly in the second and third embodiments described above, avariable resistor having four resistance values may be mounted such thatone of the resistance values are selected in accordance with the setvalue to be set.

Further, in a first embodiment described above, the case has beendescribed in which the value of the IN signal read in the first time istreated as the most significant bit in the binary number representationof the set value, and the value of the IN signal read in the second timeis treated as the least significant bit in the binary numberrepresentation of the set value. However, the invention is not limitedthereto. For example, an integrated circuit may be configured to treatthe value of the IN signal read in the first time as the leastsignificant bit in the binary number representation of the set value,and treat the value of the IN signal read in the second time as the mostsignificant bit in the binary number representation of the set value.

Further, in a first embodiment described above, the case has beendescribed in which in step SP of the set value reading processingprocedure RT1 (FIG. 7 ) 1, at time T0, the value of the IN signal as thefirst signal at the first time point is read. However, the invention isnot limited thereto. For example, the value of the IN signal may be readat any point in time prior to time T1. The same is true for second andthird embodiments described above.

In a second embodiment described above, the case has been described inwhich one of the four different resistors 6 a, 6 b, 6 c, and 6 d whoseresistance values are different from one another is selectively mountedat one of the resistor mounting positions MPu and MPI, and the state ofthe terminal is measured four times, so as to determine the set valueamong eight different set values per terminal. However, the invention isnot limited thereto. For example, an integrated circuit may beconfigured to measure the state of the terminal 11 three times, in whichone of three different types of resistors is selectively connected toone of the resistor mounting positions MPu and MPI, so as to determinethe set value among six different set values per terminal. Further, anintegrated circuit may be configured to measure the state of theterminal 11 five times or more, in which one of five or more differenttypes of resistors is selectively connected to one of the resistormounting positions MPu and MPI, so as to determine the set value amongten or more different set values per terminal.

In a third embodiment described above, the case has been described inwhich one of the four different resistors 6 a, 6 b, 6 c, and 6 d whoseresistance values are different from one another is selectively mountedat one of the resistor mounting positions MPu and MPI, and the measuredlogic level reversal time Tu is classified into four types for each ofthe pull-up resistor and the pull-down resistor, so as to determine theset value (the setting condition) among eight different set values(setting conditions) per terminal. However, the invention is not limitedthereto. For example, an integrated circuit may be configured toclassify the measured logic level reversal time Tu in three differentcategories for each of the pull-up and pull-down resistor, in which oneof three different resistors having resistance values different from oneanother is selectively mounted to one of the resistor mounting positionsMPu and MPI, so as to determine the set value among six different setvalues per terminal. Further, an integrated circuit may be configured toclassify the measured logic level reversal time Tu in five or moredifferent categories for each of the pull-up and pull-down resistor, inwhich one of five or more different resistors having resistance valuesdifferent from one another is selectively mounted to one of the resistormounting positions MPu and MPI, so as to determine the set value amongten or more different set values per terminal.

Further, in a third embodiment described above, the case has beendescribed in which the four determination ranges of the measured logiclevel reversal time Tu in the case where the resistor 6 is mounted tothe resistor mounting position MPu are the same as in the case where theresistor 6 is mounted to the resistor mounting position MPI. However,the invention is not limited thereto. For example, the fourdetermination ranges of the measured logic level reversal time Tu in thecase where the resistor 6 is mounted to the resistor mounting positionMPu may be set different from those in the case where the resistor 6 ismounted to the resistor mounting position MPI.

Further, the value of the resistance constant R of the resistor 6, thecapacitance value of the capacitor 8, the clock frequency of the OSC, orthe like in one or more embodiments described above are merely examplesand thus other values may be used. This invention is not limited to oneor more embodiments and modifications described above, but variousmodifications and variations can be made based on the spirit of theinvention. It is accordingly not intended that such modifications andvariations are excluded from the scope of the invention.

Furthermore, in one or more embodiments described above, the case hasbeen described where the LVTTL is used as the IO buffer 12. Theinvention is not limited thereto. For example, various other forms ofbuffers, such as an LVCMOS (Low Voltage CMOS), or the like, may be used.

Further, in one or more embodiments described above, the case has beendescribed in which the voltage of Vcc is 3.3 V. However, the inventionis not limited thereto. For example, the voltage of Vcc may be anyvoltage, such as 5.0 V or the like.

Further, in one or more embodiments described above, the case has beendescribed in which the technical concept is applied to the semiconductorintegrated circuit 3, 103, or 203 mounted on the circuit board 2, 102,or 202 in the printer 1, 101, or 201 as an electronic apparatus.However, the invention is not limited thereto, and the disclosure may beapplied to a semiconductor integrated circuit on a circuit board in anyone of electronic apparatuses, such as an MFP (Multi-FunctionPeripheral) having functions of a copier, and a facsimile, and variousother electronic apparatuses.

Furthermore, the invention is not limited to one or more embodiments andmodifications described above. That is, the application range of theinvention covers embodiments obtained by arbitrarily combining some ofor all of one or more embodiments and modifications described above. Theinvention also applies to a case where a part of the configuration inany one of one or more embodiments and modifications described abovethat is extracted is replaced or diverted with a part of theconfiguration of any one of one or more embodiments and modifications,or the extracted part is added to any of one or more embodiments andmodifications described above.

The invention may be used, for example, in an integrated circuit mountedon a circuit board in a printer.

The invention includes other embodiments or modifications in addition toone or more embodiments and modifications described above withoutdeparting from the spirit of the invention. The one or more embodimentsand modifications described above are to be considered in all respectsas illustrative, and not restrictive. The scope of the invention isindicated by the appended claims rather than by the foregoingdescription. Hence, all configurations including the meaning and rangewithin equivalent arrangements of the claims are intended to be embracedin the invention.

1. An integrated circuit comprising a terminal to which an impedanceelement and a power supply having a predetermined potential can beconnected, wherein the integrated circuit is configured to change apotential of one of electrodes of the impedance element connected to theterminal, detect a change in electrical characteristics of the terminalbased on characteristics of the impedance element when the potential ofthe one electrode of the impedance element is changed, to determine asetting condition among a plurality of setting conditions that are usedfor an operation of the integrated circuit, and store the settingcondition in a storage, and the integrated circuit is configured to usethe setting condition stored in the storage for the operation of theintegrated circuit.
 2. The integrated circuit according to claim 1,comprising: a signal input part that is configured to receive a signalthrough the terminal; and a control unit configured to control a signaloutput part that is electrically connected to the one electrode of theimpedance element and is configured to output a signal to change thepotential of the one electrode, wherein the control unit is configuredto detect a first transition state of the electrical characteristics ofthe terminal and a second transition state of the electricalcharacteristics of the terminal after the first transition state inresponse to the control of the signal output part, and determine thesetting condition among the plurality of setting conditions based on thedetected first transition state and second transition state.
 3. Theintegrated circuit according to claim 2, wherein the control unit isconfigured to: (i) receive a first signal from the signal input partwhile stopping the output of the signal output part; (ii) after thefirst signal is received, output from the signal output part a secondsignal whose electrical characteristics is different from that of thefirst signal; (iii) after the second signal is output, stop the outputof the signal output part; (iv) after a predetermined condition issatisfied after the output of the signal output part is stopped, receivea third signal from the signal input part; and (v) store a first part ofthe setting condition corresponding to the received first signal and asecond part of the setting condition corresponding to the received thirdsignal in the storage.
 4. The integrated circuit according to claim 3,wherein the impedance element is one of a pull-up resistor and apull-down resistor, the terminal is connected to the power supplythrough the pull-up resistor or to a ground potential through thepull-down resistor, and each of the pull-up resistor and the pull-downresistor has a plurality of resistance values different from each other.5. The integrated circuit according to claim 4, wherein the control unitis configured to determine the setting condition among the plurality ofsetting conditions, according to the change in the potential of theterminal based on a resistance value of the one of the pull-up resistorhaving two different resistance values and the pull-down resistor havingtwo different resistance values that is selectively connected to theterminal.
 6. The integrated circuit according to claim 5, wherein thecontrol unit is configured to: (i) receive the first signal from thesignal input part while stopping the output of the signal output part;(ii) after the first signal is received, output from the signal outputpart the second signal whose logic level is different from that of thefirst signal; (iii) after the second signal is output, stop the outputof the signal output part; (iv) after a predetermined time length haselapsed after the output of the signal output part is stopped, receivethe third signal from the signal input part; and (v) store the firstpart of the setting condition corresponding to the received first signaland the second part of the setting condition corresponding to thereceived third signal in the storage.
 7. The integrated circuitaccording to claim 6, wherein the control unit is configured to: (i)receive the first signal from the signal input part while stopping theoutput of the signal output part; (ii) after the first signal isreceived, output from the signal output part the second signal whoselogic level is different from that of the first signal; (iii) after thesecond signal is output, stop the output of the signal output part; (iv)after the predetermined time length has elapsed after the output of thesignal output part is stopped, receive the third signal from the signalinput part; and (v) store the first part of the setting conditioncorresponding to the received first signal and the second part of thesetting condition corresponding to the received third signal in thestorage, wherein the third signal has characteristics in which, thegreater the resistance value of the one of the pull-up resistor and thepull-down resistor that is selectively connected to the terminal, thesmaller the change in the potential according to the elapsed time afterthe second signal is output.
 8. The integrated circuit according toclaim 7, wherein the control unit is configured to: (i) receive thefirst signal from the signal input part while stopping the output of thesignal output part; (ii) after the first signal is received, output fromthe signal output part the second signal whose logic level is differentfrom that of the first signal; (iii) after the second signal is output,stop the output of the signal output part; (iv) after the predeterminedtime length has elapsed after the output of the signal output part isstopped, receive the third signal from the signal input part; and (v)store in the storage the setting condition which is a 2-bit settingcondition obtained by a combination of one bit according to a potentialof the received first signal and another bit according to a potential ofthe received third signal, wherein the third signal has characteristicsin which, the greater the resistance value of the one of the pull-upresistor and the pull-down resistor that is selectively connected to theterminal, the smaller the change in the potential according to theelapsed time after outputting the second signal.
 9. The integratedcircuit according to claim 4, wherein the control unit is configured todetermine the setting condition among the plurality of settingconditions, according to the change in the potential of the terminalbased on a resistance value of the one of the pull-up resistor havingtwo or more different resistance values and the pull-down resistorhaving two or more different resistance values that is selectivelyconnected to the terminal.
 10. The integrated circuit according to claim9, wherein the control unit is configured to: (i) receive the firstsignal from the signal input part while stopping the output of thesignal output part; (ii) after the first signal is received, output fromthe signal output part the second signal whose logic level is differentfrom that of the first signal; (iii) after the second signal is output,stop the output of the signal output part; (iv) after a predeterminedtime length has elapsed after the output of the signal output part isstopped, receive the third signal from the signal input part; and (v)store a first part of the setting condition corresponding to thereceived first signal and a second part of the setting conditioncorresponding to the received third signal in the storage.
 11. Theintegrated circuit according to claim 10, wherein the control unit isconfigured to: (i) receive the first signal from the signal input partwhile stopping the output of the signal output part; (ii) after thefirst signal is received, output from the signal output part the secondsignal whose logic level is different from that of the first signal;(iii) after the second signal is output, stop the output of the signaloutput part; (iv) after the predetermined time length has elapsed afterthe output of the signal output part is stopped, receive the thirdsignal from the signal input part; and (v) store the first part of thesetting condition corresponding to the received first signal and thesecond part of the setting condition corresponding to the received thirdsignal in the storage, wherein the third signal has characteristics inwhich, the greater the resistance value of the one of the pull-upresistor and the pull-down resistor that is selectively connected to theterminal, the smaller the change in the potential according to theelapsed time after the second signal is output.
 12. The integratedcircuit according to claim 11, wherein the control unit is configuredto: (i) receive the first signal from the signal input part whilestopping the output of the signal output part; (ii) after receiving thefirst signal, output from the signal output part the second signal whoselogic level is different from that of the first signal; (iii) after thesecond signal is output, stop the output of the signal output part; (iv)after the predetermined time length has elapsed after the output of thesignal output part is stopped, receive the third signal from the signalinput part; (v) after a predetermined time length has elapsed after thethird signal is received, receive a fourth signal; and (vi) store in thestorage the setting condition which is a 2 or more-bit setting conditionper the terminal determined based on the potentials of the receivedfirst, third, and fourth signals, wherein the third signal hascharacteristics in which, the greater the resistance value of the one ofthe pull-up resistor and the pull-down resistor that is selectivelyconnected to the terminal, the smaller the change in the potentialaccording to the elapsed time after the second signal is output, andwherein the fourth signal has characteristics in which, the greater theresistance value of the one of the pull-up resistor and the pull-downresistor that is selectively connected to the terminal, the smaller thechange in the potential according to the elapsed time after the secondsignal is output.
 13. The integrated circuit according to claim 11,wherein the control unit is configured to: (i) receive the first signalfrom the signal input part while stopping the output of the signaloutput part; (ii) after the first signal is received, output from thesignal output part the second signal whose logic level is different fromthat of the first signal; (iii) after the second signal is output, stopthe output of the signal output part; (iv) after the output of thesignal output part is stopped, receive the third signal from the signalinput part; and (v) store in the storage the setting condition which isa 2 or more-bit setting condition per the terminal determined based onthe potential of the received first signal and a time length from a timewhen the output of the second signal from the signal output part isstopped after the second signal is output to a time when a logic levelof the third signal is changed, wherein the third signal hascharacteristics in which the higher the resistance value of the one ofthe pull-up resistor and the pull-down resistor that is selectivelyconnected to the terminal, the smaller the change in the potentialaccording to the elapsed time after the second signal is output.
 14. Acircuit board comprising: the integrated circuit according to claim 1;the impedance element connected to the terminal of the integratedcircuit; and the power supply connected to the impedance element.
 15. Acircuit board comprising: the integrated circuit according to claim 1; aplurality of impedance element mounting positions to each of which theimpedance element can be mounted; and the power supply connected to theplurality of impedance element mounting positions, wherein theintegrated circuit is configured to determine the setting conditionamong the plurality of setting conditions based on the characteristicsof the impedance element that is mounted to one of the plurality ofimpedance element mounting positions.
 16. A circuit board comprising:the integrated circuit according to claim 1; and at least one impedanceelement mounting position to which the impedance element, which is avariable impedance element whose impedance is configured to beselectively set, can be mounted; and the power supply connected to theat least one impedance element mounting position, wherein the integratedcircuit is configured to determine the setting condition among theplurality of setting conditions based on a selectively set impedance ofthe variable impedance element that is mounted to the at least oneimpedance element mounting position.
 17. An electronic apparatuscomprising: the circuit board according to claim 14; and a deviceconfigured to be operated by the integrated circuit of the circuitboard.